package com.example.admin.service;

import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;

import java.util.List;

public interface SensitiveService {
    /**
     * 根据名称查询敏感词
     * @param sensitiveDto
     * @return
     */
    List<AdSensitive> getSensitiveByName(SensitiveDto sensitiveDto);

    /**
     * 保存敏感词
     * @param sensitiveDto
     * @return
     */
    Integer addSensitive(SensitiveDto sensitiveDto);


}
